package cn.exrick.xboot.common.utils.jiuqi.utils;

import java.io.File;

public class FileUtile {

    /**
     * 删除服务上的文件
     * @author nijianping
     * @date 20190730
     * @param filePath 路径
     * @param fileName 文件名
     * @return
     */
    public static boolean deleteServerFile(String filePath, String fileName){
        boolean delete_flag = false;
        File file = new File(filePath + fileName);
        if (file.exists() && file.isFile()  ) {
            boolean delete = file.delete();
            delete_flag = true;
        } else{
            delete_flag = false;
        }
        return delete_flag;
    }
}
